<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<html>

<head>
<title>Spring - In Memory Authentication Example</title>

<style>
h2 {
  color:#232323;
  font-style:normal;
  font-weight:300;
  letter-spacing:-1px;
  line-height:1.1em;
  margin:30px 0;
  text-align:center;
  font-size:42px;
}

h3 {
  color:#FF3300;
  font-style:normal;
  font-weight:300;
  letter-spacing:-1px;
  line-height:1.1em;
  margin:30px 0;
  text-align:center;
  font-size:22px;
}

</style>

</head>

<body>
	<h2 id="banner"><spring:message code="app.header" /></h2>
	<br></br>
	<br></br>
	<h3 id="banner">Unauthorized Access !!</h3>

	<hr />

	<c:if test="${not empty error}">
		<div style="color: red">
			Oops! Could not authenticate User.<br /> Cause :
			${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
		</div>
	</c:if>

	<p class="message">Access denied!</p>
	<a href="${pageContext.request.contextPath}/login">Go back to login page</a>
</body>
</html>